home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fatted Calf
/
The Fatted Calf.iso
/
Applications
/
Audio
/
Patchmix
/
Source
/
PaletteView.h
< prev
next >
Wrap
Text File
|
1992-07-31
|
810b
|
33 lines
// PaletteView.h
// By Jayson Adams, NeXT Developer Support Team
// You may freely copy, distribute and reuse the code in this example.
// NeXT disclaims any warranty of any kind, expressed or implied, as to its
// fitness for any particular use.
#import <appkit/View.h>
#define PAL_IMAGES 20 // just the ugen icons, not converters
#define ROWS 4
#define COLS 5 // ugen columns
#define CONV_IMAGES 6
#define ICON_SIZE 80 // except for ...
#define CONV_HEIGHT 53 // converters are 53 high
@interface PaletteView:View
{
NXRect hotRect[PAL_IMAGES+CONV_IMAGES];
id image[PAL_IMAGES+CONV_IMAGES];
id patchVw;
id dragImage;
}
/* instance methods */
- (BOOL)acceptsFirstMouse;
- setImages;
- mouseDown:(NXEvent *)theEvent;
- drawSelf:(NXRect *)rects :(int)count;
@end